﻿using B.S.Warehouse.Domain;
using B.S.Warehouse.ErrorCord;
using MediatR;
using SqlSugar;

namespace B.S.Warehouse.Write.Api.Application.Command.StockInApplicationCommand
{
    public class AddStockInApplicationCommand : IRequest<ApiResult<object>>
    {

        // 主键，自增长

        public int Id { get; set; }

        // 单据主题，必填
        [SugarColumn(IsNullable = false)]
        public string DocumentSubject { get; set; }

        /// <summary>
        /// 单据编号，可自动生成，这里假设为字符串类型
        /// </summary>
        public string DocumentNumber { get; set; }

        // 来源单据
        public string SourceDocument { get; set; }

        // 库管人员，必填
        [SugarColumn(IsNullable = false)]
        public string WarehouseKeeper { get; set; }

        // 申请人员
        public string Applicant { get; set; }

        // 申请时间，必填，这里用DateTime类型
        [SugarColumn(IsNullable = false)]
        public DateTime ApplicationTime { get; set; } = DateTime.Now;

        // 入库类别
        public string StockInCategory { get; set; }

        // 供应商名称
        public string SupplierName { get; set; }

        // 备注
        public string Remarks { get; set; }

        /// <summary>
        ///  删除标准
        /// </summary>
        public bool IsDel { get; set; }

    }
}
